package com.bitmain.mmst.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class LoginController {

	@RequestMapping(value="loginPage",method=RequestMethod.GET)
	public ModelAndView loginPage(){
		ModelAndView mv = new ModelAndView("views/spingmvc/login.jsp");
		System.out.println("�����¼�����controller");
		return mv;
	}
	
	@RequestMapping(value="login",method=RequestMethod.GET)
	public String loging(){
		System.out.println("������controller");
		return "index.jsp";
	}
	
	@RequestMapping(value="login2",method=RequestMethod.GET)
	public ModelAndView login2(){
		ModelAndView mv = new ModelAndView("springmvc/login");
		return mv;
	}
}
